# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-sphinxcontrib-gist
_pkgname=sphinxcontrib.gist
pkgver=0.1.0
pkgrel=7
pkgdesc="Sphinx gist extension"
url="https://pypi.org/project/sphinxcontrib-gist"
arch="noarch"
license="LGPL-3.0-only"
depends="python3 py3-sphinx"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
	fix-build.patch
	"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-sphinxcontrib-gist" # Backwards compatibility
provides="py-sphinxcontrib-gist=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
a6bc8bae2bf64c5201452134c075c6336ab1928c534bb6d274c3fdda555609ad58e02d11d4c9d78528be39578c759394016c58ef6f0bad1ffc38328e3cf3ca00  sphinxcontrib.gist-0.1.0.tar.gz
e1bbfac6dc5d6b9dd4b8c2a3ec1d4b790cafb89e69640ca7a9da041d27d20388d973ba8529bafd098dce9b2f5029ad7b219af5414a59bd557744964eeac050e1  fix-build.patch
"
